﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Meqs.Entity
{
    /// <summary>
    /// 评估项
    /// </summary>
    [Serializable]
    public class EvalItems
    {
        private int _rID;
        private string _evalName;
        private string _remarks;

        public EvalItems()
        {
        }

        public EvalItems(int rID, string evalName, string remarks)
        {
            _rID = rID;
            _evalName = evalName;
            _remarks = remarks;
        }

        /// <summary>
        /// ID
        /// </summary>
        public int RID
        {
            get { return _rID; }
            set { _rID = value; }
        }

        /// <summary>
        /// 评估项名称
        /// </summary>
        public string EvalName
        {
            get { return _evalName; }
            set { _evalName = value; }
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks
        {
            get { return _remarks; }
            set { _remarks = value; }
        }

        public bool Equals(EvalItems other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return other._rID == _rID;
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != typeof (EvalItems)) return false;
            return Equals((EvalItems) obj);
        }

        public override int GetHashCode()
        {
            return _rID;
        }
    }
}
